//
//  SpotsModel.m
//  littleLight's Project-A
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 light. All rights reserved.
//

#import "SpotsModel.h"

@implementation SpotsModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"target"]) {
        self.title = [value objectForKey:@"title"];
        
    }
    
    if ([key isEqualToString:@"poi"]) {
        self.name = [value objectForKey:@"name"];
        
        
    }
    
    if ([key isEqualToString:@"user"]) {
        self.model = [[SpotUserModel alloc] init];
        [self.model setValuesForKeysWithDictionary:value];
        
    }
    
    
}


@end
